package com.ocm.order.feign;

import com.ocm.core.launch.constant.AppConstant;
import com.ocm.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;

@FeignClient(
	value = AppConstant.APPLICATION_ORDER_NAME,
	fallback = IOrderFallback.class
)
public interface IOrderClient {

	String API_PREFIX = "/order";


	@GetMapping(API_PREFIX+"getStatus")
	R<Integer> getStatusById(@RequestParam("id") @NotNull Long spuId);


}
